<?php $sellerHelper = $this->getHelper('Seller'); ?>
<div id="view-content">
	<?php $stranke = $sellerHelper->getStranke(); ?>
	<table id="stranke-grid" class="table">
		<tr>
			<th>Emso stranke</th><th>Ime stranke</th><th>Priimek stranke</th><th>Akcije</th>
		</tr>
		<?php foreach ($stranke as $stranka): ?>
			<tr>
				<td><?php echo $stranka->getEmso() ?></td>
				<td><?php echo $stranka->getIme() ?></td>
				<td><?php echo $stranka->getPriimek() ?></td>
				<td>
					<a href="<?php echo $stranka->getEditUrl($this->baseUrl()) ?>">Uredi</a> |
					<a href="<?php echo $stranka->getDeleteUrl($this->baseUrl()) ?>">Izbriši</a> |
					<?php if ($stranka->getAktiviran()): ?>
						<a href="<?php echo $stranka->getDeactivateUrl($this->baseUrl()) ?>">Deaktiviraj</a>
					<?php else: ?>
						<a href="<?php echo $stranka->getActivateUrl($this->baseUrl()) ?>">Aktiviraj</a>
					<?php endif; ?>
				</td>
			</tr>
		<?php endforeach; ?>
	</table>

	<div class="button-set">
		<a class="button" href="<?php echo $this->baseUrl()."/prodaja/create-customer" ?>">Ustvari novo stranko</a>
	</div>

</div>